use std::borrow::Borrow;

use rust_embed::{
    RustEmbed,
};

/**
 * @author Dream-Lab مۇختەرجان مەخمۇت
 * @email ug-project@outlook.com
 * @create date 2022-07-23 06:35:29
 * @modify date 2022-07-23 06:35:29
 * @desc [description]
*/
#[derive(RustEmbed)]
#[folder = "assets"]
pub struct MyAppAssets;

impl MyAppAssets {
    pub fn logo_text() -> String {
        String::from_utf8_lossy(MyAppAssets::get("logo.txt").unwrap().data.as_ref()).into_owned()
    }
}